package com.example.springboot.mapper;

import com.example.springboot.entity.ForumPostFavorite;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ForumPostFavoriteMapper {


    void insertFavorite(ForumPostFavorite favorite);


    void deleteFavorite(@Param("postId") Integer postId, @Param("userId") Integer userId);


    ForumPostFavorite selectFavorite(@Param("postId") Integer postId, @Param("userId") Integer userId);
    List<ForumPostFavorite> findByUserId(@Param("userId") Integer userId);
}